package com.example.async.service.impl;

import com.example.async.service.IUserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Override
    public void method() {
        System.out.println("线程名：" + Thread.currentThread().getName());
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void methodTs() {
        System.out.println("执行事务方法 methodTS");
    }
}
